how to simplify equations with fractions